package com.my.project.dubbo.order.provider;

import com.my.project.dubbo.order.api.IOrderService;
import com.my.project.dubbo.order.dto.OrderRequestDto;
import com.my.project.dubbo.order.dto.OrderResponseDto;
import org.springframework.stereotype.Service;

/**
 * @Author:wangbin.
 * @Description.
 * @Date:Created in 10:37 2017/8/21.
 * @Modified By:
 */
@Service("orderService2")
public class OrderServiceImpl2 implements IOrderService {
    public OrderResponseDto addOrder(OrderRequestDto request) {
        System.out.println("request 曾经来过：" + request.toString());

        OrderResponseDto responseDto = new OrderResponseDto();
        responseDto.setCode("1000");
        responseDto.setMessage("下单成功   版本2.0");
        return responseDto;
    }

    public OrderResponseDto deleteOrder(String id) {
        return null;
    }
}
